﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:29f2c2da-7c0b-43c4-b7bb-7b905fc49a93 
 * Form Name:FOChangeDocTypeUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.FOChangeDocTypeUIModel
{
	[FormRegister("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.FOChangeDocTypeUIModel.FOChangeDocTypeUIFormWebPart", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart", "29f2c2da-7c0b-43c4-b7bb-7b905fc49a93","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.FOChangeDocTypeUIModel.FOChangeDocTypeUIFormWebPart', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDUI.WebPart', '29f2c2da-7c0b-43c4-b7bb-7b905fc49a93')
	///<siteMapNode url="~/erp/simple.aspx?lnk=29f2c2da-7c0b-43c4-b7bb-7b905fc49a93" title="FOChangeDocTypeUIForm"/>
    public partial class FOChangeDocTypeUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(FOChangeDocTypeUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new FOChangeDocTypeUIModelAction Action
		{
			get { return (FOChangeDocTypeUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		FOChangeDocTypeUIModelModel _uimodel=null;
		public new FOChangeDocTypeUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new FOChangeDocTypeUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as FOChangeDocTypeUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton SaveClick157;
        IUFButton BtnCancel;
        IUFButton BtnAdd;
        IUFButton BtnDelete;
        IUFButton BtnFind;
        IUFButton BtnList;
        IUFButton BtnFirstPage;
        IUFButton BtnPrevPage;
        IUFButton BtnNextPage;
        IUFButton BtnLastPage;
        IUFCard Card0;
        IUFCard Card2;
        IUFLine Line0;
        IUFLabel lblCode86;
        IUFFldTextBox Code86;
        IUFLabel lblName47;
        IUFFldTextBox Name47;
        IUFLabel lblShortName79;
        IUFFldTextBox ShortName79;
        IUFLabel lblDescription61;
        IUFFldTextBox Description61;
        IUFLine Line1;
        IUFLabel lblDocHeaderSequenceStyle79;
        IUFFldDropDownList DocHeaderSequenceStyle79;
        IUFLabel lblDocHeaderSequence79;
        IUFFldReference DocHeaderSequence79;
        IUFLine Line2;
        IUFLabel lblApproveType130;
        IUFFldDropDownList ApproveType130;
        IUFLabel lblConfirmType100;
        IUFFldDropDownList ConfirmType100;
        IUFLine Line3;
        IUFLabel lblEffective_IsEffective62;
        IUFFldCheckBox Effective_IsEffective62;
        IUFLabel lblEffective_EffectiveDate88;
        IUFFldDatePicker Effective_EffectiveDate88;
        IUFLabel lblEffective_DisableDate124;
        IUFFldDatePicker Effective_DisableDate124;
        IUFLabel lblIsDocNoEditable206;
        IUFFldCheckBox IsDocNoEditable206;
        IUFLabel lblID154;
        IUFFldNumberControl ID154;
        IUFLabel lblSysVersion139;
        IUFFldNumberControl SysVersion139;
        IUFLabel lblBusType112;
        IUFFldDropDownList BusType112;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public FOChangeDocTypeUIFormWebPart()
        {
            FormID = "29f2c2da-7c0b-43c4-b7bb-7b905fc49a93";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.SaveClick157.Click += new EventHandler(SaveClick157_Click);		
						
				//Button控件事件
			this.BtnCancel.Click += new EventHandler(BtnCancel_Click);		
						
				//Button控件事件
			this.BtnAdd.Click += new EventHandler(BtnAdd_Click);		
						
				//Button控件事件
			this.BtnDelete.Click += new EventHandler(BtnDelete_Click);		
						
				//Button控件事件
			this.BtnFind.Click += new EventHandler(BtnFind_Click);		
						
				//Button控件事件
			this.BtnList.Click += new EventHandler(BtnList_Click);		
						
				//Button控件事件
			this.BtnFirstPage.Click += new EventHandler(BtnFirstPage_Click);		
						
				//Button控件事件
			this.BtnPrevPage.Click += new EventHandler(BtnPrevPage_Click);		
						
				//Button控件事件
			this.BtnNextPage.Click += new EventHandler(BtnNextPage_Click);		
						
				//Button控件事件
			this.BtnLastPage.Click += new EventHandler(BtnLastPage_Click);		
						

	
            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new FOChangeDocTypeUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{new InParameterModel("FOChangeDocType"),},new InParameterModel[]{new InParameterModel("FOChangeDocType","@ID","@ID"),});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (FOChangeDocTypeUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
    		if(this.Consumer.Count > 0 && this.IsConsuming)
			{
				OnPreRenderConsumer(new InParameterModel[]{new InParameterModel("FOChangeDocType"),},new InParameterModel[]{new InParameterModel("FOChangeDocType","@ID","@ID"),});
				OnLoadData(this);//对吗？
			}
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
				//BtnFind对应隐藏域的数据传递。:True
				UFIDA.U9.UI.PDHelper.CommonReferenceHelper.BindingBtnFindParam(this);
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new FOChangeDocTypeUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"FOChangeDocTypeUIForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Value"),},new GridRowDef[]{new GridRowDef(22,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card2, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 22, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.SaveClick157 = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "SaveClick157", "True", "True", 35, 22,"19", "S",true,false,"4a32a23b-d5a6-4594-ae87-5041410f1c66","4a32a23b-d5a6-4594-ae87-5041410f1c66","a0b2556c-eebe-46d8-820d-a73436e40b7c");
		
            UIControlBuilder.SetButtonAccessKey(this.SaveClick157);
            this.SaveClick157.UIModel = this.Model.ElementID;
            this.SaveClick157.Action = "SaveClick";
	                            this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "True", 35, 22,"2", "Z",true,false,"f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","27bec685-f028-41ae-8fd9-aef69548a10d");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action = "CancelClick";
	                            this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 22,"3", "N",true,false,"19478b02-d2a9-4d7e-b7af-00070c61ff2d","19478b02-d2a9-4d7e-b7af-00070c61ff2d","a21523a0-596b-493d-9a14-c98f40891b0d");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action = "NewClick";
	                            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 22,"4", "R",true,false,"0467218f-229b-4954-b2d4-3c5976467f76","0467218f-229b-4954-b2d4-3c5976467f76","387bc1c5-d7d1-4c74-8c93-64e4f0311f47");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action = "DeleteClick";
	                            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 22,"12", "F",true,false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","5bf59dd2-5d80-409d-a6b2-c3206e5f49df");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action = "FindClick";
	                            this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 22,"13", "L",true,false,"c639596b-5a8c-4fc1-88bb-a3d670cda992","c639596b-5a8c-4fc1-88bb-a3d670cda992","988f8ca1-5190-43bc-be8f-061417d20e93");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action = "ListClick";
	                            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "True", 35, 22,"15", "[",true,false,"f229e163-fcd1-4f6a-a645-df86c0efd8ec","f229e163-fcd1-4f6a-a645-df86c0efd8ec","ce476e83-b07b-4317-998b-36701c8e9f0e");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action = "FirstPage";
	                            this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "True", 35, 22,"16", ",",true,false,"5ed368d8-7616-4696-b671-3f1c895f3b43","5ed368d8-7616-4696-b671-3f1c895f3b43","f4204edb-2bd9-4e51-b0bb-8d18bdd70a50");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action = "PrevPage";
	                            this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "True", 35, 22,"17", "]",true,false,"36afec41-957c-493a-97a4-eddb136af5b4","36afec41-957c-493a-97a4-eddb136af5b4","6e42da72-de1f-49b4-83bb-9eb52ee2d088");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action = "NextPage";
	                            this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "True", 35, 22,"18", "]",true,false,"dc4a37d1-35de-4016-81dd-582aef3cdeb0","dc4a37d1-35de-4016-81dd-582aef3cdeb0","1e4b84c0-9cbf-4adf-87f7-d8b24c346e06");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action = "LastPage";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","9286b2da-b52c-467c-a01b-fb88d3d9b9a4");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器








            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card2(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card2",true,"none", true, true, "2","52a5f168-0952-4db5-840f-a1d806e62899","90daefd7-98fa-49fa-a8d8-5ede58072b48");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 12, 17, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  this.Model.FOChangeDocType, "FOChangeDocType", "", null, 1, "预测订单变更单据类型");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(153,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(153,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Value"),new GridColumnDef(20,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Title"),new GridColumnDef(5,bool.Parse("True"),"Spacing"),new GridColumnDef(152,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(20,bool.Parse("True")),new GridRowDef(19,bool.Parse("False")),});
            this.Card2 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.Line0 = UIControlBuilder.BuilderUFLine(_UFCard, "Line0", 311, "Horizontal", "True", 311, 20, 0, 0, 3, 1, "100","a4916e7a-1fa5-4eee-8227-d60d137ae171","a4916e7a-1fa5-4eee-8227-d60d137ae171");
	

		
			UIControlBuilder.BuilderUFControl(this.Line0, "0");		


				this.lblCode86 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblCode86", "", "True", "True", "Right", 153, 20, 0, 1, 1, 1, "100","52a5f168-0952-4db5-840f-a1d806e62899","6b5d88f0-a558-4dfb-9d88-c497bd7635d9");


								

		
			UIControlBuilder.BuilderUFControl(this.lblCode86, "1");		


				this.Code86 = UIControlBuilder.BuilderTextBox(_UFCard, "Code86", "False", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 1, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblCode86","","50","52a5f168-0952-4db5-840f-a1d806e62899","bf7a02a2-5440-4e14-9531-5bab33ea6482");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Code86, "False", "Code", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldCode, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Code86, "2");		
		 

				this.lblName47 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblName47", "", "True", "True", "Right", 153, 20, 0, 2, 1, 1, "100","b7b5e4a4-051f-4760-b51a-269c92a58bb0","067053b6-d8f9-4bc5-9c49-aaaf0dc7e09f");


								

		
			UIControlBuilder.BuilderUFControl(this.lblName47, "3");		


				this.Name47 = UIControlBuilder.BuilderTextBox(_UFCard, "Name47", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 2, 1, 1, "True", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblName47","","255","b7b5e4a4-051f-4760-b51a-269c92a58bb0","502a13bf-8508-4236-8188-678d15880570");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Name47, "False", "Name", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldName, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Name47, "4");		
		 

				this.lblShortName79 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblShortName79", "", "True", "True", "Right", 153, 20, 0, 3, 1, 1, "100","4a94a303-a51e-45be-abd0-e04a1d7fa3e0","f565dd25-fc9e-437d-9c66-60b6441bbd0b");


								

		
			UIControlBuilder.BuilderUFControl(this.lblShortName79, "5");		


				this.ShortName79 = UIControlBuilder.BuilderTextBox(_UFCard, "ShortName79", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 3, 1, 1, "False", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblShortName79","","50","4a94a303-a51e-45be-abd0-e04a1d7fa3e0","cc101119-7f16-4a13-82c6-4cb1f0c160c5");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ShortName79, "False", "ShortName", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldShortName, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.ShortName79, "6");		
		 

				this.lblDescription61 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDescription61", "", "True", "True", "Right", 153, 20, 0, 4, 1, 1, "100","10ffe3bc-2961-4bb1-a46f-bda4cfe81093","48300bdc-3613-4c75-917f-a87b76957583");


								

		
			UIControlBuilder.BuilderUFControl(this.lblDescription61, "7");		


				this.Description61 = UIControlBuilder.BuilderTextBox(_UFCard, "Description61", "True", "True", "True", "False", "Left", 0, 60, 0, 153, 20, 2, 4, 1, 1, "True", "100"
			,"",TextBoxMode.SingleLine,TextAlign.Left, true,false,"lblDescription61","","2000","10ffe3bc-2961-4bb1-a46f-bda4cfe81093","52aabdc5-3888-44a2-8f68-93d1cd535708");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Description61, "False", "Description", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldDescription, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Description61, "8");		
		 

				this.Line1 = UIControlBuilder.BuilderUFLine(_UFCard, "Line1", 311, "Horizontal", "True", 311, 20, 0, 5, 3, 1, "100","ac478b82-c94d-4552-b761-2c221b2f22c0","ac478b82-c94d-4552-b761-2c221b2f22c0");
	

		
			UIControlBuilder.BuilderUFControl(this.Line1, "9");		


				this.lblDocHeaderSequenceStyle79 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocHeaderSequenceStyle79", "", "True", "True", "Right", 153, 20, 0, 6, 1, 1, "100","d6e19cdc-61bc-4bc1-9475-a6a566f482c9","058059d6-6b9d-4803-94a4-6e6ec1573796");


								

		
			UIControlBuilder.BuilderUFControl(this.lblDocHeaderSequenceStyle79, "10");		


		        this.DocHeaderSequenceStyle79 = UIControlBuilder.BuilderDropDownList(_UFCard, "DocHeaderSequenceStyle79", "UFIDA.U9.Base.Doc.DocHeaderSequenceStyleEnum", false,  true, true, "Left", 2, 60, 0, 153, 20, 2, 6, 1, 1, "100",true,false,"lblDocHeaderSequenceStyle79","d6e19cdc-61bc-4bc1-9475-a6a566f482c9","4ff5e986-e46c-4264-b9f7-8fe0201544f0");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocHeaderSequenceStyle79, "False", "DocHeaderSequenceStyle", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldDocHeaderSequenceStyle, "FOChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.DocHeaderSequenceStyleEnum");
			EnumControlsMap.Add(this.DocHeaderSequenceStyle79, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.DocHeaderSequenceStyle79, "11");		
		 

				this.lblDocHeaderSequence79 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblDocHeaderSequence79", "", "True", "True", "Right", 153, 20, 0, 7, 1, 1, "100","448741bd-151e-4e57-8b91-5bee342d7830","41c805ea-4729-4e61-9350-c4814a97ba1f");

			UIControlBuilder.SetLabelFormReference(this.lblDocHeaderSequence79,"922bef2b-1cd8-4d51-9413-82d72bebcee7",true,992, 504);
			//foreach input parameter
	    	ScriptBuilder.BuildFormLinkInScript(this.lblDocHeaderSequence79,"lblDocHeaderSequence79", new FormLinkInParam[]{new FormLinkInParam("ID","","Key","DocHeaderSequence79",1),new FormLinkInParam("EntityFullName","","","",0), });
			//foreach output set data
	    	ScriptBuilder.BuildFormLinkOutScript(this.lblDocHeaderSequence79,"lblDocHeaderSequence79", new FormLinkOutParam[]{new FormLinkOutParam("ID","","Key","DocHeaderSequence79"),new FormLinkOutParam("Code","","Value","DocHeaderSequence79"),new FormLinkOutParam("Name","","Text","DocHeaderSequence79"),new FormLinkOutParam("EntityFullName","","",""), });
		
								

		
			UIControlBuilder.BuilderUFControl(this.lblDocHeaderSequence79, "12");		


				this.DocHeaderSequence79 = UIControlBuilder.BuilderRefrenceControl(_UFCard,"DocHeaderSequence79",true,true, true,153, 20, 2, 7, 1, 1, "100","13",false,false,true,"lblDocHeaderSequence79","448741bd-151e-4e57-8b91-5bee342d7830","8f72c0d7-4495-4d1b-9e47-96277ff03076");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.DocHeaderSequence79, "False", "DocHeaderSequence", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldDocHeaderSequence, "FOChangeDocType");
			UIControlBuilder.SetReferenceControlRefInfo(this.DocHeaderSequence79,"99ee7f41-f68e-4127-8d7f-96b97d2a3371", 580,408, "Name","Code","ID", this.Model.FOChangeDocType.FieldDocHeaderSequence_Code,this.Model.FOChangeDocType.FieldDocHeaderSequence_Name);
            //foreach Reference's input filter parameter
            //foreach Reference's output set data, columnID锛屽弬鐓ц繑鍥炲垪鐨凢ieldID
			ScriptBuilder.BuildReferenceControlOuputScript(this.DocHeaderSequence79,"DocHeaderSequence79",new ReferenceOutputParam[]{new ReferenceOutputParam("","ID",""),new ReferenceOutputParam("","Code",""),new ReferenceOutputParam("","Name",""),new ReferenceOutputParam("","Description",""),new ReferenceOutputParam("","EntityType_FullName",""),});
				

		
			UIControlBuilder.BuilderUFControl(this.DocHeaderSequence79, "13");		
		 

				this.Line2 = UIControlBuilder.BuilderUFLine(_UFCard, "Line2", 311, "Horizontal", "True", 311, 20, 0, 8, 3, 1, "100","84d08aa1-c402-43b7-a1ed-5802645b5550","84d08aa1-c402-43b7-a1ed-5802645b5550");
	

		
			UIControlBuilder.BuilderUFControl(this.Line2, "14");		


				this.lblApproveType130 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblApproveType130", "", "True", "True", "Right", 153, 20, 0, 11, 1, 1, "100","11edbd40-c717-4596-856d-9cb842152ae7","ad4cdac3-67bf-4ba3-ba5d-df39300a4dad");


								

		
			UIControlBuilder.BuilderUFControl(this.lblApproveType130, "17");		


		        this.ApproveType130 = UIControlBuilder.BuilderDropDownList(_UFCard, "ApproveType130", "UFIDA.U9.Base.Doc.ApproveTypeEnum", true,  true, true, "Left", 2, 60, 0, 153, 20, 2, 11, 1, 1, "100",true,false,"lblApproveType130","11edbd40-c717-4596-856d-9cb842152ae7","5ae70708-6352-47d2-ba7a-112f5ad24c85");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ApproveType130, "False", "ApproveType", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldApproveType, "FOChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.ApproveTypeEnum");
			EnumControlsMap.Add(this.ApproveType130, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.ApproveType130, "18");		
		 

				this.lblConfirmType100 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblConfirmType100", "", "True", "True", "Right", 153, 20, 0, 12, 1, 1, "100","915a2aae-bff5-4845-b6a5-71f07522fe49","8b79cbe4-38fe-466a-a4df-d0ad0ddd7330");


								

		
			UIControlBuilder.BuilderUFControl(this.lblConfirmType100, "19");		


		        this.ConfirmType100 = UIControlBuilder.BuilderDropDownList(_UFCard, "ConfirmType100", "UFIDA.U9.Base.Doc.ConfirmTypeEnum", false,  true, true, "Left", 2, 60, 0, 153, 20, 2, 12, 1, 1, "100",true,false,"lblConfirmType100","915a2aae-bff5-4845-b6a5-71f07522fe49","d17a7784-f99c-4b5c-9224-df7b3532469e");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ConfirmType100, "False", "ConfirmType", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldConfirmType, "FOChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Base.Doc.ConfirmTypeEnum");
			EnumControlsMap.Add(this.ConfirmType100, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.ConfirmType100, "20");		
		 

				this.Line3 = UIControlBuilder.BuilderUFLine(_UFCard, "Line3", 311, "Horizontal", "True", 311, 20, 0, 13, 3, 1, "100","f0eccbe2-deb8-4ceb-bfaf-a4164b41814f","f0eccbe2-deb8-4ceb-bfaf-a4164b41814f");
	

		
			UIControlBuilder.BuilderUFControl(this.Line3, "21");		


				this.lblEffective_IsEffective62 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_IsEffective62", "", "True", "True", "Right", 153, 20, 0, 14, 1, 1, "100","fdd0c37d-4e8a-4430-86c3-fc7a66df667e","fdd0c37d-4e8a-4430-86c3-fc7a66df667e");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_IsEffective62, "22");		


				this.Effective_IsEffective62 = UIControlBuilder.BuilderUFCheckbox(_UFCard, "Effective_IsEffective62", true, true, "Left", 60, 0, 153, 20, 2, 14, 1, 1, "100",false,"lblEffective_IsEffective62","c28c5aa8-4330-4fb6-b508-9f21878e64d5","81dfb25b-c2b6-4b29-bab1-3154e54c5bec");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_IsEffective62, "False", "Effective_IsEffective", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldEffective_IsEffective, "FOChangeDocType");
		

		
			UIControlBuilder.BuilderUFControl(this.Effective_IsEffective62, "23");		
		 

				this.lblEffective_EffectiveDate88 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_EffectiveDate88", "", "True", "True", "Right", 153, 20, 0, 15, 1, 1, "100","66412f86-3d1d-4d8c-bace-924799c97124","66412f86-3d1d-4d8c-bace-924799c97124");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_EffectiveDate88, "24");		


				this.Effective_EffectiveDate88 = UIControlBuilder.BuilderDatePicker(_UFCard, "Effective_EffectiveDate88", true, true, true, "Date","Left", 3, 60, 0, 153, 20, 2, 15, 1, 1, "100",true,false,"lblEffective_EffectiveDate88","807ea604-20dd-4d60-9d05-a2d47a7945fc","42659154-7445-484d-a2af-f357acb9725a");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_EffectiveDate88, "False", "Effective_EffectiveDate", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldEffective_EffectiveDate, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Effective_EffectiveDate88, "25");		
		 

				this.lblEffective_DisableDate124 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblEffective_DisableDate124", "", "True", "True", "Right", 153, 19, 0, 16, 1, 1, "100","25ed5036-9fb6-4696-8ff1-2d83329b4e6a","25ed5036-9fb6-4696-8ff1-2d83329b4e6a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblEffective_DisableDate124, "26");		


				this.Effective_DisableDate124 = UIControlBuilder.BuilderDatePicker(_UFCard, "Effective_DisableDate124", true, true, true, "Date","Left", 3, 60, 0, 153, 19, 2, 16, 1, 1, "100",true,false,"lblEffective_DisableDate124","c0460ce4-62b6-4ab5-8b20-d56d4e0a8e39","731a61ec-ba5a-455d-8467-63146511563a");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.Effective_DisableDate124, "False", "Effective_DisableDate", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldEffective_DisableDate, "FOChangeDocType");


		
			UIControlBuilder.BuilderUFControl(this.Effective_DisableDate124, "27");		
		 

				this.lblIsDocNoEditable206 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblIsDocNoEditable206", "", "True", "True", "Right", 153, 20, 0, 10, 1, 1, "100","1dd3f686-05d4-4d05-a75e-f9958f6666c5","1dd3f686-05d4-4d05-a75e-f9958f6666c5");


								

		
			UIControlBuilder.BuilderUFControl(this.lblIsDocNoEditable206, "28");		


				this.IsDocNoEditable206 = UIControlBuilder.BuilderUFCheckbox(_UFCard, "IsDocNoEditable206", true, true, "Left", 60, 0, 153, 20, 2, 10, 1, 1, "100",false,"lblIsDocNoEditable206","cbc0151b-927b-41f4-9a39-98127a4773a5","d2de6fb3-ab6a-4015-9337-9b312977b17c");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.IsDocNoEditable206, "False", "IsDocNoEditable", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldIsDocNoEditable, "FOChangeDocType");
		

		
			UIControlBuilder.BuilderUFControl(this.IsDocNoEditable206, "29");		
		 

				this.lblID154 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblID154", "", "False", "True", "Right", 152, 20, 0, 0, 1, 1, "100","30409637-6223-4fd7-9e52-7a3960f11007","a08773ea-fcaa-48a2-bf01-939502e543c3");


								

		
			UIControlBuilder.BuilderUFControl(this.lblID154, "30");		


				this.ID154 = UIControlBuilder.BuilderNumberControl(_UFCard, "ID154", "False", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblID154","8.0","30409637-6223-4fd7-9e52-7a3960f11007","29cc36a4-8145-4004-a954-d0be2d8e1921",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.ID154, "False", "ID", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldID, "FOChangeDocType");
	
		
			UIControlBuilder.BuilderUFControl(this.ID154, "31");		
		 

				this.lblSysVersion139 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblSysVersion139", "", "False", "True", "Right", 152, 20, 0, 0, 1, 1, "100","2f9669a9-0a4e-4a3c-835a-13cd3bcbd6b7","092c2488-c8cf-4955-a220-14929b0d89e0");


								

		
			UIControlBuilder.BuilderUFControl(this.lblSysVersion139, "32");		


				this.SysVersion139 = UIControlBuilder.BuilderNumberControl(_UFCard, "SysVersion139", "True", "False", "True", "Left", 7, 60, 0, 152, 20, 0, 0, 1, 1, NumbericType.Numberic, "100",79228162514264337593543950335m, -79228162514264337593543950335m
			,TextAlign.Right,0,true,false,true,"lblSysVersion139","8.0","2f9669a9-0a4e-4a3c-835a-13cd3bcbd6b7","68bac28c-eb3f-4d2a-8e05-a89a7b665fa4",null,null,null, null);
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.SysVersion139, "False", "SysVersion", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldSysVersion, "FOChangeDocType");
	
		
			UIControlBuilder.BuilderUFControl(this.SysVersion139, "33");		
		 

				this.lblBusType112 = UIControlBuilder.BuilderUFLabel(_UFCard, "lblBusType112", "", "True", "True", "Right", 153, 20, 0, 9, 1, 1, "100","5b0cc98d-7b8d-410d-9c88-7be1d4575c2a","5b0cc98d-7b8d-410d-9c88-7be1d4575c2a");


								

		
			UIControlBuilder.BuilderUFControl(this.lblBusType112, "34");		


		        this.BusType112 = UIControlBuilder.BuilderDropDownList(_UFCard, "BusType112", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.FOChangeTypeBE.FocChangeDocTypeEnum", true,  true, true, "Left", 2, 60, 0, 153, 20, 2, 9, 1, 1, "100",true,false,"lblBusType112","870d9978-2011-469a-98d5-63388c3bf235","308f8f76-ab0b-446f-ba75-b26a091e7c79");
			UIControlBuilder.BuilderUIFieldBindingControl(this, this.BusType112, "False", "BusType", this.Model.FOChangeDocType, this.Model.FOChangeDocType.FieldBusType, "FOChangeDocType");
			EnumTypeList.Add("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.FOChangeTypeBE.FocChangeDocTypeEnum");
			EnumControlsMap.Add(this.BusType112, _UFCard);
		

		
			UIControlBuilder.BuilderUFControl(this.BusType112, "35");		
		 


														
			this.DocHeaderSequence79.IsMultiOrg  = false ;
			this.lblDocHeaderSequence79.SetMultiOrgInfo(this.DocHeaderSequence79,false);
			
																				

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





		#endregion
		

	}
}
